<?php
    header('Content-type:text/json');
    require "../../connection.php";
    $id = $_POST['id'];
    $sql = "select * from goods where id ='".$id."'";
    $result = $conn->doSql($sql);
    echo json_encode($result);

?>